#ifndef READYWORK_H
#define READYWORK_H

#include <QWidget>
#include <QMessageBox>
#include "keyboard.h"
#include "common_ui.h"

#define READWORK_HELP "阿达其外啊在差在下次在萨达的额外企鹅"


namespace Ui {
    class ReadyWork;
}

class ReadyWork : public QWidget
{
    Q_OBJECT

public:
    explicit ReadyWork(QWidget *parent = 0);
    ~ReadyWork();

signals:
    void isReady(float temper,float humi,U64 worktime);

private:
    Ui::ReadyWork *ui;
    Keyboard *keyboard;

    float temper,humi;
    U64 worktime;

private slots:
    void on_btnOK_clicked();
    void on_btnCancel_clicked();
    void on_btnTime_clicked();
    void on_btnHumi_clicked();
    void on_btnTemper_clicked();

    void set_temper(float d);
    void set_humi(float d);
    void set_worktime(U64 d);
};

#endif // READYWORK_H
